/**
 * 
 */
package net.cloudcodex.client.character.view;

import net.cloudcodex.client.campaign.view.CampaignsView;
import net.cloudcodex.client.campaign.view.CampaignsView.Message;
import net.cloudcodex.client.character.view.panel.CharactersInCampaignPanel;

import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.inject.Inject;

/**
 * @author dweltz
 * 
 */
public class CharactersInCampaignViewImpl extends ScrollPanel implements
		CharactersInCampaignView {

	private Message message;
	private CharactersInCampaignPanel charactersInCampaignPanel;

	@Inject
	public CharactersInCampaignViewImpl(Message message) {
		this.message = message;
		charactersInCampaignPanel = new CharactersInCampaignPanel(message);
		this.add(charactersInCampaignPanel);
	}

	@Override
	public HasClickHandlers getAddNPCButton() {
		return charactersInCampaignPanel.getAddNPCButton();

	}

	@Override
	public HasClickHandlers getAddPCButton() {
		return charactersInCampaignPanel.getAddPCButton();

	}

	@Override
	public void addCharacterView(CharacterInCampaignView view) {
		charactersInCampaignPanel.addCharacterView(view);
	}

}
